package cm.day04;

import java.util.ArrayList;

public class SystemTest {
    public static void main(String[] args) {


        long start=System.currentTimeMillis();
        method();
        long end=System.currentTimeMillis();

        System.out.println("向集合中添加1千万个数字需要的时间是"+(end-start)+"毫秒");

    }
    public static void method(){
        ArrayList<Long>list=new ArrayList<>();


        for (long i = 1; i <=10000000 ; i++) {
            list.add(i);
        }
    }
}
